package com.yogurt.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yogurt.common.utils.PageUtils;
import com.yogurt.gulimall.product.entity.CategoryEntity;
import com.yogurt.gulimall.product.vo.Catalog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author yogurt
 * @email yogurt@gmail.com
 * @date 2021-06-02 21:57:52
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询所有分类信息
     * @return
     */
    List<CategoryEntity> listWithTree();

    void removeMenus(List<Long> asList);

    List<Long> findCatelogPath(Long catelogId);

    void updateCascade(CategoryEntity category);

    Map<String, List<Catalog2Vo>> getCatalog();
}

